home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / OOPTUT34.ZIP / OOPHELP.HLP (.txt) < prev    next >
Borland Turbo Vision Help  |  1992-11-29  |  20KB  |  304 lines

  1.  Turbo Pascal OOP Tutor and Examples 
  2. Welcome to Turbo Pascal OOP Tutor, which allows notes on Object-oriented Programming to be viewed in a scrollable window, whilst the source code for a number of examples can also be inspected. These example programs can be run as executable files (.EXE) from the tutor screen. The 
  3.  menu is accessed by pressing Alt-Space.  All the other menus are accessed by pressing Alt-Z, where Z is the first letter of the menu. For example, the "Notes" menu is pulled down by Alt-N. The Status Line provides appropriate prompts and shows, bottom right, the available Heap space. Use the arrow keys to scroll the text. )
  4. Press ESC to put this help screen away. 
  5.  Help File 
  6. This help file is created by typing the information using any word processor and conveniently in the IDE of Turbo Pascal itself. The extended ASCII characters such as 
  7.  and 
  8.  are entered by holding down the Alt key and entering the ASCII values such as 223 and 220 using the Numeric Keypad to the right of the keyboard, releasing the Alt key after each numeric entry. 
  9.  File viewer 
  10. A file viewer views the contents of a text file. You can use the arrow keys to move about in the file. A file is loaded via the File
  11. Open menu item. a
  12.   Up         Move up one line
  13.   Down       Move down one line
  14.   Right      Move right one column
  15.   Left       Move left one column
  16.   PgUp       Move one page up
  17.   PgDn       Move one page down
  18.   Home       View right most column of the file
  19.   End        View left most column of the file
  20.   Ctrl-PgUp  View top of file
  21.   Ctrl-PgDn  View bottom of file.
  22. File viewers can be resized and moved using the Windows menu. 
  23.  List 
  24. Selecting List from the Notes sub-menu provides a screen window containing an alphabetical list of text files covering many Turbo Pascal OOP topics, with a brief description of the contents. After observing the filename required, press Alt-F3 to leave this screen display and then select Open to obtain a Dialog Box for selection of the reqired file. 
  25.  List Open 
  26. Select the required file from the Dialog Box by pressing the Tab key and then using the arrow keys to move to the appropriate file. Then press the ENTER key. 
  27.  Example Code 
  28. On selecting Open a list of Pascal source code files is presented for selection of the required file by pressing the Tab key and using the arrow keys to move to the appropriate file. The ENTER key should then be pressed. 
  29.  RecInit 
  30. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key R. p
  31. Program to illustrate the initialization of a record by conventional means as opposed to the use of 'objects'. 
  32.  (System) menu 
  33.     (Alt-Spacebar)
  34. The System menu appears on the far left of the menu bar and is represented by the 
  35.  symbol. (
  36. When you pull down the 
  37.  menu, you see     
  38.   About
  39. About 
  40. When you choose the About command from the 
  41.  (System) menu, a dialog box appears, showing copyright and version information. >
  42. To close the box, press Esc, or click the top left symbol 
  43.  ObjInit 
  44. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key O. r
  45. Program to illustrate the initialization of a record by the use of an object as opposed to conventional methods. 
  46.  WrongOOP 
  47. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key W. T
  48. Program to illustrate the need for Virtual Methods in object-oriented programming. 
  49.  Examples Open 
  50. To open a source code file select Open by arrow keys and then press ENTER, or just press O. Then use the tab key to move to the list of programs and then the arrow keys to select the required one. Then press ENTER. 
  51.  RightOOP 
  52. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key i. J
  53. This is an example of object-oriented programming using virtual methods. 
  54.  Notes  (Alt-N) 
  55. The Notes menu offers choices for opening files, changing directories, and exiting the program. $
  56.  Open          Change
  57. Dir    FExit
  58.  File
  59. Open  (F3) 
  60. The Open command displays the Open a File dialog box. In this dialog box you select the text file you want to browse in a file
  61. viewer. &
  62. The Open
  63. File dialog box contains: 
  64.  an input
  65. box with a history list
  66.  a list
  67. box to browse the directory
  68.  the standard Cancel button
  69.  Open action button
  70.  an information panel that describes the
  71.    selected file
  72.  File
  73. Change Dir...
  74. Change Dir brings up the Change
  75. Directory dialog box, in which you can change the current directory. 
  76.  File
  77. DOS Shell 
  78. With the DOS Shell command, you can leave the program temporarily to perform a DOS command or run another program. 9
  79. To return to this program, type EXIT at the DOS prompt. 
  80.  File
  81. Exit 
  82.      (Alt-X)
  83. The Exit command terminates this program. 
  84.  Window 
  85.     (Alt-W)
  86. The Window menu contains commands to close, move and perform other window-management commands. 
  87. Most of the windows in this program have all the standard window elements, including scroll bars, a close box, and zoom icons. >
  88. For more about windows and their elements, refer to windows. :
  89.  Window-management commands
  90.  Size/Move        Zoom
  91.  Tile             Cascade
  92.  Next             Previous
  93.  Close
  94.  Window
  95. Size/Move 
  96.      (Ctrl-F5)
  97. Choose this command to change the size or position of the active window. 
  98.   Size
  99. If you press Shift while you use the arrow keys, you can change the size of the active window. Once you've adjusted its size or position, press Enter. Q
  100. If a window has a Resize corner, you can drag that corner to resize the window. 
  101.   Move
  102. When you choose Window
  103. Size/Move, the active window moves in response to the arrow keys. Once you've moved the window to where you want it, press Enter. F
  104. You can also move a window by dragging its title bar with the mouse. 
  105.  Window
  106. Zoom 
  107.    (F5)
  108. Choose Zoom to resize the active window to the maximum size. If the window is already zoomed, you can choose this command to restore it to its previous size. {
  109. You can also double-click anywhere on the window's title bar (except where an icon appears) to zoom or unzoom the window. 
  110.  Window
  111. Tile 
  112. Choose Window
  113. Tile to tile all file viewers on the desktop. L
  114.                
  115.                
  116.                
  117.                
  118.                
  119.                
  120.                
  121.                
  122.                
  123.                
  124.                
  125.                
  126.                
  127.                
  128.                
  129.                
  130.              Tiled Windows
  131.  Window
  132. Cascade 
  133. Choose Window
  134. Cascade to stack all file viewers on the desktop. A
  135.                          
  136.                          
  137.                          
  138.                          
  139.                          
  140.         Cascaded Windows
  141.  Window
  142. Next 
  143. Choose Next to cycle forwards through the windows on the desktop. 
  144.  Window
  145. Previous 
  146. Choose Previous to cycle backwards through the windows on the desktop. 
  147.  Window
  148. Close 
  149.     (Alt-F3)
  150. Choose Close to close the active window. O
  151. You can also click the Close box in the upper right corner to close a window. 
  152.  Options  (Alt-O) 
  153. The Options menu contains commands that let you change color and mouse default settings. 
  154.  Options
  155. Mouse... 
  156. The Mouse command brings up the Mouse
  157. Options dialog box, where you can set various options that control how your mouse works, including: R
  158.  how fast a double-click is
  159.  which mouse button (right or left) is
  160.    active
  161.  Options
  162. Colors... 
  163. The Colors item brings up the Colors
  164. dialog box, where you can customize the colors of the display. 
  165.  Options
  166. Save Desktop 
  167. Saves the state of all open windows to a file call OOPTUTOR.DSK. This file can be reloaded by selecting Options
  168. Restore
  169. Desktop. 
  170.  Options
  171. Restore Desktop 
  172. Restore a previously-saved state of all open windows from a file call OOPTUTOR.DSK. This file is saved via the Options
  173. Desktop menu command. 
  174.  Help on Open a File Dialog Box 
  175. The Open a File dialog box contains an input box, a file
  176. list, a file information panel, the standard button Cancel, one other action button (Open), plus a history list that's attached to the Name
  177. inputbox. 
  178.  Name 
  179.                                  
  180. The Name input box is where you enter the name of the file to load, or the file-name mask to use as a filter for the Files list box (for example, *.*). 
  181.  Files 
  182.                                  
  183.   FILENM01.PAS  
  184.   FILENM09.PAS  
  185.   FILENM02.PAS  
  186.   FILENM10.PAS  
  187.   FILENM03.PAS  
  188.   FILENM11.PAS  
  189.   FILENM04.PAS  
  190.   FILENM12.PAS  
  191.   FILENM05.PAS  
  192.   ..            
  193.   FILENM06.PAS  
  194.   \MOREXAMP     
  195.   FILENM07.PAS  
  196.   \TOURS        
  197.   FILENM08.PAS  
  198.   \ANSWERS.DIR  
  199. The Files list box lists the names of files in the current directory that match the file-name mask in the Name input box, plus the parent directory and all subdirectories. 
  200.  C:\TP\EXAMPLES\*.PAS                     
  201.  HELLO.PAS       52  Jul 14,1990  12:00pm 
  202. The File information panel shows the path name, file name, date, time, and size of the selected file. =
  203. None of the items on this information panel are selectable. 
  204.  [ Open ] 
  205. The Open button opens a new Viewer window and places the selected file in that window. 
  206.  [ Cancel ] 
  207. If you choose Cancel, nothing changes and no action occurs, and the dialog box is put away. M
  208. (Esc always cancels a dialog box, even if a Cancel button does not appear.) 
  209.  [ Open ] 
  210. In the Open a File dialog box, if you choose the Open button TVDEMO opens a new file
  211. viewer and places the selected file in that window. 
  212.  Help on the Change Directory dialog box 
  213. The Change Directory dialog box consists of an input box, a list box, the standard OK and Help buttons, and two other buttons (Chdir and Revert). |
  214.  Directory Name 
  215.                                      
  216. The Directory Name input box is where you type in the path of the new directory. 
  217.  Directory Tree 
  218.    Drives                            
  219. C:\                            
  220.      
  221. TP                           
  222.        
  223. TVISION                    
  224. The Directory Tree list box enables you to navigate directories by using the selecting bar and pressing Enter. 
  225. If you're using the keyboard, press Enter to make the selected directory be the current directory, then choose OK or press Esc to exit the dialog box. +
  226.  [Chdir ] 
  227. The Chdir button changes the current directory once you've selected or typed in a directory name. +
  228.  [Revert] 
  229. The Revert button goes back to the previous directory, as long as you haven't yet exited the dialog box. 
  230.  Help on the Mouse Options dialog box 
  231. This dialog box consists of one check box, one slider bar, and the standard buttons OK and Cancel. 
  232.  Mouse Double Click       
  233.  Slow     Medium     Fast 
  234. The Mouse Double Click slider bar adjusts the double-click speed of your mouse. ^
  235.  [X] Reverse Mouse Buttons 
  236. Reverse Mouse Buttons makes the right mouse button take on the normal functions of the left--and vice versa. 6
  237.  See also:
  238.  Options
  239. Mouse...
  240. command
  241.  Help on the Colors dialog box 
  242. The Colors dialog box consists of two list boxes, a text display area, the standard OK, Cancel, and Help buttons, and one of the following: 
  243.  On color and black-and-white systems, it
  244.    also contains two color palettes.
  245.  On monochrome systems, it contains a set
  246.    of radio buttons instead of the palettes.
  247. This dialog box is where you can change the colors of different parts of this program. 
  248.  Group 
  249.    Desktop          
  250.    Menus            
  251.    Dialogs/Calc     
  252.    Puzzle           
  253.    Calendar         
  254.    Ascii table      
  255.                     
  256. The Group list box contains the names of the different regions of the program that you can customize. L
  257.  Item 
  258.    Color            
  259.                     
  260. When you select a group from the Group list, the Item list box displays the names of the different views in that region. 
  261.  Foreground 
  262.  Background 
  263. On color and black-and-white systems, you use the Foreground and Background palettes to modify colors. 
  264.  Colors 
  265. ) Mono low        
  266.   ( ) Mono high       
  267.   ( ) Mono underscore 
  268.   ( ) Mono inverse    
  269. On monochrome systems, you use the Colors set of radio buttons systems to modify the character attributes. Q
  270.  Text Text Text 
  271.  Text Text Text 
  272. On all systems, the display text (above the Help button) shows the current color or attribute settings. a
  273. Changes do not take effect on the desktop until you close the Colors dialog box by choosing OK. 
  274.  JuniorOb 
  275. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key J. I
  276. Program to illustrate the correct use of Virtual Methods, using a unit. 
  277.  Run Examples 
  278. Select the appropriate example from the sub-menu, by using the arrow keys and pressing ENTER, or by pressing the appropriate highlighted letter. 
  279.  StaffObj 
  280. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key S. 6
  281. Unit as part of the illustration of Virtual Methods. 
  282.  DOS Operations 
  283. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key D. N
  284. Program to illustrate the use of DOS operations from a Turbo Pascal Program. 
  285.  Figures demonstration 
  286. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key F. 
  287. From Chapter 4, Object-Oriented Programming, in the User's Guide. Shows how to Extend FIGURES.PAS with type Arc, and then with types FullLine and Rectangle. The reader is invited to add another type such as Ellipse. 
  288.  ListDemo 
  289. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key L. R
  290. From Chapter 4 the Turbo Pascal 6.0 User's Guide. Dynamic objects & destructors. v
  291. If you are running this program in the IDE, be sure to enable the full graphics save option when you load TURBO.EXE: 
  292. turbo -g 
  293. This ensures that the IDE fully swaps video RAM and keeps "dustclouds" from appearing on the user screen when in graphics mode. You can enable this option permanently via the Options|Environment|Startup dialog. 
  294. This program uses the Graph unit and its .BGI driver files to display graphics on your system. The "PathToDrivers" constant defined below is set to \TP\BGI, which is the default location of the BGI files as installed by the INSTALL program. If you have installed these files in a different location, make sure the .BGI file for your system (EGAVGA.BGI, etc.) is in the current directory or modify the "PathToDrivers" constant accordingly. 
  295.  Streams 
  296. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key t. 
  297. Demo program from the Turbo Vision Guide to illustrate the use of Streams to transfer objects between devices, such as memory and the disk. The original Borland program has been modified to display details of Stream Registration and Graphical Shapes. DOS Debug is also used to display a memory check for the collection of graphical shapes and to inspect the stream file GRAPHICS.STM and this is achieved from the program using the Exec procedure. 
  298.  Collections 
  299. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key C. 
  300. Demo program from the Turbo Vision Guide to illustrate the use of Collections. The original Borland program has been modified to check memory for a collection of objects (clients) using DOS Debug from the program by means of the Exec procedure. 
  301.  Object Compatability 
  302. This program can be run by selection using the arrow keys and pressing ENTER, or else by pressing the highlighted key b. z
  303. Program to show dynamic objects and to illustrate the compatability of descendant objects with ancestors. A simple database situation is created with Surname and Forenames having a descendant, Address, which in turn has a descendant, Phone. As in the Borland program, LISTDEMO, a Node record is created on the Heap and this points to the data item and to the next Node record. 
  304.